/* 患者表单页面样式 */
:root {
    --primary-color: #271E4A;
    --secondary-color: #CA79C6;
    --green-accent: #79CFA6;
    --red-accent: #FF706F;
    --white: #FFFFFF;
    --form-text: rgba(39, 30, 74, 0.8);
    --border-color: rgba(39, 30, 74, 0.5);
    --shadow: 0px 4px 15px rgba(216, 210, 252, 0.64);
    --pink-shadow: 0px 4px 15px rgba(236, 180, 233, 1);
}

/* 表单容器 */
.patient-form-section {
    background-color: var(--white);
    border-radius: 47px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    color: var(--primary-color);
}

.patient-list-btn {
    background-color: var(--red-accent);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.patient-list-btn:hover {
    background-color: #e55a5a;
}

/* 表单布局 */
.form-container {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row.three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

/* 表单组 */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    font-weight: 300;
    color: var(--form-text);
    margin-bottom: 8px;
}

.form-group label.required {
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    font-size: 16px;
    color: var(--primary-color);
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-bottom-color: var(--primary-color);
}

.form-control::placeholder {
    color: var(--form-text);
    opacity: 0.6;
}

/* 选择框样式 */
select.form-control {
    background-color: transparent;
    cursor: pointer;
}

/* 文本域样式 */
textarea.form-control {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    resize: vertical;
    min-height: 80px;
}

/* 文件上传区域 */
.upload-section {
    margin-top: 20px;
}

.upload-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.browse-btn {
    background-color: var(--green-accent);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.3s;
}

.browse-btn:hover {
    background-color: #6bb896;
}

.file-name {
    font-size: 14px;
    color: var(--form-text);
    font-style: italic;
}

/* 提交按钮 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 16px;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--pink-shadow);
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #b668b5;
}

/* 表单分组 */
.form-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row.three-columns {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .patient-form-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .form-container {
        gap: 15px;
    }
    
    .form-row {
        gap: 15px;
    }
    
    .patient-form-section {
        padding: 15px;
    }
} 